package com.xiyu.service.vo.customer.follow.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 客户跟进 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class CustomerFollowBase {

    @Schema(description = "客户ID")
    private Long customerId;

    @Schema(description = "跟进编号")
    @Size(max = 50, message = "跟进编号长度不能超过50")
    private String followNo;

    @Schema(description = "跟进方式")
    @Range(max = 100000000, message = "跟进方式最大不能超过100000000")
    private Integer followType;

    @Schema(description = "跟进时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime followTime;

    @Schema(description = "内容")
    @Size(max = 1024, message = "内容长度不能超过1024")
    private String content;

    @Schema(description = "拥有人")
    private Long ownerId;

    @Schema(description = "所属部门")
    private Long deptId;

}
